let cat = [
    { "supercategory": "html", "id": 0, "name": "Button" },
    { "supercategory": "html", "id": 1, "name": "Select" },
    { "supercategory": "html", "id": 2, "name": "Input" },
    { "supercategory": "html", "id": 3, "name": "Text" },
    { "supercategory": "html", "id": 4, "name": "Radio" },
    { "supercategory": "html", "id": 5, "name": "Checkbox" },
    { "supercategory": "html", "id": 6, "name": "Rate" },
    { "supercategory": "html", "id": 7, "name": "Switch" }
]
for (let i = 0; i < cat.length; i++) {
    console.log(cat[i].name, ",")
}

let id_map = {
    1: 2,
    2: 0, // not usable ???
    13: 5,
    9: 6,
    5: 1,
    6: 4,
    11: 7
}